<?php 
	
	// ** Admin Settings ** //
     $settings = AdminSettings::first();
	 
	$trueProfile = true; 

?>

<?php $__env->startSection('title'); ?><?php echo Lang::get('misc.team_members'); ?> - <?php echo e( $user->name ); ?> - <?php $__env->stopSection(); ?>

 <?php echo $__env->make('includes.cover-static', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

<?php $__env->startSection('content'); ?> 

<!-- Col MD -->
<div class="col-md-8">	

			
<?php if( $total != 0 ): ?>
	
	 
	<h1 class="title-item none-overflow">
			<?php echo Lang::get('misc.team_members'); ?> <small>(<?php echo $total; ?>)</small>
	</h1> 
<hr />
	
	
<?php foreach( $data as $designer ): ?>
	
	<?php echo $__env->make('includes.users-list', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php endforeach; ?>


<?php if( $data->getTotal() != $data->count() ): ?>
         	   
  <div class="btn-group paginator-style">
		   <?php echo $data->links(); ?> 
		</div>
		
<?php endif; ?>

				  	
	<?php else: ?>
	
	<?php if( Auth::check() && $user->id != Auth::user()->id || !Auth::check() ): ?>
	
	<div class="btn-block text-center">
	    	<i class="icon-user ico-no-result"></i>
	    </div>
	    
	 	<h3 class="margin-top-none text-center no-result user-no-result">
	    	- <?php echo Lang::get('users.no_members_found'); ?> -
	    	</h3>
	    	
	    <?php elseif(Auth::check() && $user->id == Auth::user()->id): ?>	
	 
		<div class="btn-block text-center">
	    	<i class="icon-user ico-no-result"></i>
	    </div>
	    
	 	<h3 class="margin-top-none text-center no-result user-no-result">
	    	- <?php echo Lang::get('users.no_members_found'); ?> -
	    	</h3>	
	    	
 
	   <div class="btn-block text-center" style="margin-bottom: 20px;">
	   	<a href="<?php echo URL::to('members'); ?>"  class="btn btn-sm btn-success">
			<i class="glyphicon glyphicon-plus myicon-right"></i> <?php echo Lang::get('misc.add_members'); ?>

			</a>
	   </div> 
		<?php endif; ?>
	
	
	<?php endif; ?>
</div><!-- /COL MD -->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('sidebar'); ?>
	<div class="col-md-4">
		<?php echo $__env->make('includes.ads', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
	</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('javascript'); ?>
<?php echo HTML::script('public/js/count.js'); ?>

<script type="text/javascript">

<?php if(Session::has('success_add')): ?>
	 $('.popout').html("<?php echo Session::get('success_add'); ?>").fadeIn(500).delay(5000).fadeOut();
   <?php endif; ?>
   
   <?php if( Session::has('error_add') ): ?>
   	$('#myModal').modal('show');
   <?php endif; ?>

$("#updateShot").on('click',function(){
    	$(this).css({'display': 'none'})
    });
    
	$("#description").charCount({ allowed: <?php echo $settings->message_length; ?>, warning: 10, css: 'counterBio' });

</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>